-
-
Notifications
You must be signed in to change notification settings - Fork 364
feat(TabItem): add ErrorLogger support on TabItem #6143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's GuideThis PR integrates the ErrorLogger component into TabItem by extending the Tab component with configurable logger parameters, refactoring TabItemContent to wrap its content in ErrorLogger using those settings, and updating the Layout component to source defaults from configuration and forward them to both ErrorLogger and Tab. Updated Class Diagram: ErrorLogger Integration ComponentsclassDiagram
class Layout {
+IOptionsMonitor_BootstrapBlazorOptions_ Options (new)
-_enableErrorLogger: bool (new)
-_showToast: bool (new)
}
class Tab {
+bool? EnableErrorLogger (new)
+bool? ShowErrorLoggerToast (new)
+string? ErrorLoggerToastTitle (new)
}
class TabItemContent {
-Layout? Layout (removed CascadingParameter)
+Tab TabSet (new CascadingParameter)
+RenderItemContent() (updated to use TabSet)
}
class BootstrapBlazorOptions {
+bool EnableErrorLogger
+bool ShowErrorLoggerToast
}
class ErrorLogger {
+RenderFragment ChildContent
+bool? EnableErrorLogger
+bool? ShowToast
+string? ToastTitle
}
Layout ..> BootstrapBlazorOptions : Reads defaults for own ErrorLogger
Layout ..> Tab : Passes settings to
TabItemContent ..> Tab : Accesses TabSet for ErrorLogger settings
TabItemContent ..> ErrorLogger : Instantiates & Configures
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6143 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 703 703
Lines 31084 31088 +4
Branches 4397 4395 -2
=========================================
+ Hits 31084 31088 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ArgoZhang - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Link issues
fixes #6142
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Enable configurable error logging on Tab and TabItem components by exposing new parameters and embedding the ErrorLogger component around tab content, while refactoring cascading parameters and sourcing defaults from global options.
New Features:
Enhancements: